home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: VanCLy@ix.netcom.com (Van Chinh Ly)
- Newsgroups: comp.lang.c++
- Subject: string class in STL?
- Date: 6 Apr 1996 06:39:56 GMT
- Organization: Netcom
- Message-ID: <4k53js$i4o@cloner2.ix.netcom.com>
- Reply-To: VanCLy@ix.netcom.com
- NNTP-Posting-Host: sfo-ca5-04.ix.netcom.com
- X-NETCOM-Date: Fri Apr 05 10:39:57 PM PST 1996
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- Is there a 'string' class in the STL?
-
- I was enrolled in an STL course, couldn't make it,
- got the course materials afterwards, read it, followed
- the examples on one of the slides:
-
- #include "map.h"
- #include "bstring.h"
-
- int main()
- {
- map<string, int, less<string>> name_age;
-
- name_age["Some name"] = 14;
-
- cout << "Some name's value = " << name_age["Some name"] << endl;
-
- return 0;
- }
-
-
-
- First of all, "bstring.h" is not one of my STL *.h files. Secondly,
- I performed a "grep" command through all the header files but couldn't
- find any "string" class.
-
- Can someone help me?
-
- Van
-